package com.ruoyi.audit.service.impl;

import com.ruoyi.audit.service.IInventoryViewService;
import com.ruoyi.mateProcurement.domain.MateProcurement;
import com.ruoyi.mateProcurement.mapper.MateProcurementMapper;
import com.ruoyi.procurement.domain.ProcurementOrder;
import com.ruoyi.procurement.mapper.ProcurementOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author WangChangShuo
 * @date 2022年09月15日 11:04
 */
@Service
public class InventoryViewServiceImpl implements IInventoryViewService {

    @Autowired
    private ProcurementOrderMapper procurementOrderMapper;

    @Autowired
    private MateProcurementMapper mateProcurementMapper;

    /**
     * 列表展示
     * @param procurementOrder
     * @return
     */
    @Override
    public List<ProcurementOrder> selectList(ProcurementOrder procurementOrder) {

        return procurementOrderMapper.selectInventViewList(procurementOrder);
    }

    @Override
    public List<MateProcurement> selectMateList(MateProcurement mateProcurement) {
        return mateProcurementMapper.selectMateList(mateProcurement);
    }
}
